
import fs from 'fs-extra'
import ora from 'ora'
import { GMC_PATH, GMC_CONFILE } from './base'

export default () => {
  console.log('')
  let spinner = ora(`    Initial Configure ...`).start()
  // 创建配置文件目录
  !fs.existsSync(GMC_PATH) && fs.mkdirpSync(GMC_PATH)
  // 创建配置文件
  !fs.existsSync(GMC_CONFILE) && fs.writeFileSync(GMC_CONFILE, '', 'utf-8')
  setTimeout(() => {
    spinner.stop()
    console.log('✔   Complete Initial Configure !\n')
  }, 500)
}
